package sv.com.renacempleo.dto.red;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import sv.com.renacempleo.dto.ctg.CtgCatalogo;

@Entity
@Table(name = "red_oferta_idioma")
public class RedOfertaIdioma implements Serializable{

	private static final long serialVersionUID = 5342106481501066598L;
	
	@Id
	@Column(name = "red_oidi_id", nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long redOfertaIdiomaId;
	@ManyToOne
	@JoinColumn(name = "red_ofe_id", nullable = false)
	private RedOferta redOferta;
	@ManyToOne
	@JoinColumn(name = "ctg_idi_id", nullable = false)
	private CtgCatalogo ctgIdioma;
	@ManyToOne
	@JoinColumn(name = "ctg_niv_id", nullable = false)
	private CtgCatalogo ctgNivel;
	
	public Long getRedOfertaIdiomaId() {
		return redOfertaIdiomaId;
	}
	public void setRedOfertaIdiomaId(Long redOfertaIdiomaId) {
		this.redOfertaIdiomaId = redOfertaIdiomaId;
	}
	public RedOferta getRedOferta() {
		return redOferta;
	}
	public void setRedOferta(RedOferta redOferta) {
		this.redOferta = redOferta;
	}
	public CtgCatalogo getCtgIdioma() {
		return ctgIdioma;
	}
	public void setCtgIdioma(CtgCatalogo ctgIdioma) {
		this.ctgIdioma = ctgIdioma;
	}
	public CtgCatalogo getCtgNivel() {
		return ctgNivel;
	}
	public void setCtgNivel(CtgCatalogo ctgNivel) {
		this.ctgNivel = ctgNivel;
	}
}
